package vip.mtdp.gateway.service;

import vip.mtdp.common.exception.AppRTException;

/**
 * @author wangguoqing
 * @Description jwt token
 * @date 2019/12/5 18:14
 */
public interface TokenService {


    /**
     * 创建token
     * @param tokenDTO
     * @return
     * @throws AppRTException
     */
    public String createToken(TokenDTO tokenDTO) throws AppRTException;

    /**
     * 解密token
     * @param token
     * @return 返回json数据的字符串
     * @throws AppRTException
     */
    public String decodeToken(String token) throws AppRTException;

}
